;Assembler header file for TaskManager
;written by DefMod (Dec 31 2005) on Sat Dec 31 14:11:42 2005
;Jonathan Coxhead, jonathan@doves.demon.co.uk, 22 May 1995

        [       :LNOT: :DEF: TaskManager_Hdr
        GBLS    TaskManager_Hdr

        [       :LNOT: :DEF: Get_Types
        GBLS    Get_Types
        ]
        [       :LNOT: :DEF: Types_Hdr
Get_Types                       SETS    "GET oslib/Types.Hdr"
        |
Get_Types                       SETS    ""
        ]
        $Get_Types

        [       :LNOT: :DEF: Get_OS
        GBLS    Get_OS
        ]
        [       :LNOT: :DEF: OS_Hdr
Get_OS                          SETS    "GET oslib/OS.Hdr"
        |
Get_OS                          SETS    ""
        ]
        $Get_OS

        [       :LNOT: :DEF: Get_Wimp
        GBLS    Get_Wimp
        ]
        [       :LNOT: :DEF: Wimp_Hdr
Get_Wimp                        SETS    "GET oslib/Wimp.Hdr"
        |
Get_Wimp                        SETS    ""
        ]
        $Get_Wimp

;Symbols for constants
TaskManager_NameLimit           *       32
TaskManager_ModuleTask          *       &1
TaskManager_DraggableSlot       *       &2
TaskManager_ShutdownExitOnly    *       &1
TaskManager_ShutdownNoPreQuit   *       &2
TaskManager_ShutdownPortablePowerDown *       &4
TaskManager_ShutdownSendMessage *       &8
TaskManager_ShutdownIgnoreUpCalls *       &10
TaskManager_ShutdownReboot      *       &20
TaskManager_ShutdownPowerOff    *       &40
TaskManager_GroupOverview       *       &0
TaskManager_GroupRequired       *       &1000
TaskManager_GroupSubsidiary     *       &2000
TaskManager_GroupCommercial     *       &3000
TaskManager_GroupFreeware       *       &4000
TaskManager_GroupUser           *       &5000
TaskManager_GroupMask           *       &F000

;Symbols for structure offsets and sizes
                                ^       0
                                #       Bits
TaskManager_Flags               *       @

                                ^       0
TaskManager_Task_task           #       Wimp_T
TaskManager_Task_name           #       Ptr
TaskManager_Task_slot_size      #       Int
TaskManager_Task_flags          #       TaskManager_Flags
TaskManager_Task                *       @

                                ^       0
                                #       Bits
TaskManager_ShutdownFlags       *       @

                                ^       0
                                #       Bits
TaskManager_GroupID             *       @


;Symbols for SWI's and SWI reason codes
XTaskManager_TaskNameFromHandle *       &62680
TaskManager_TaskNameFromHandle  *       &42680
   ;Entry
   ;  R0 = task (Wimp_T)
   ;Exit
   ;  R0 -> name (String)

XTaskManager_EnumerateTasks     *       &62681
TaskManager_EnumerateTasks      *       &42681
   ;Entry
   ;  R0 = context (Int)
   ;  R1 = task (pointer to TaskManager_Task)
   ;  R2 = size (Int)
   ;Exit
   ;  R0 = context_out (Int)
   ;  R1 -> end (Char)
   ;  R2 corrupted

XTaskManager_Shutdown           *       &62682
TaskManager_Shutdown            *       &42682
   ;Entry
   ;  R0 = flags (TaskManager_ShutdownFlags)

XTaskManager_StartTask          *       &62683
TaskManager_StartTask           *       &42683
   ;Entry
   ;  R0 -> path_name (Char)

Service_TaskManagerAcknowledgements *       &42680
   ;Entry
   ;  R1 = &42680
   ;  R2 = add_message (pointer to code)

        ]
        END
